#!/bin/bash
#$Id$
#
# download eve wallet journal reference types
# (c) 2010 bitmech.com; see LICENSE.
#
APIBASE=http://api.eve-online.com
METHOD=/eve/RefTypes.xml.aspx
URL=${APIBASE}${METHOD}
OUTPUT=RefTypes.xml

wget -O ${OUTPUT} ${URL}>/dev/null 2>&1; rc=$? 
if [ ${rc} -ne 0 ]; then
    echo "There appears to have been a problem getting the reftypes."
else
    echo "Reference types downloaded to file ${OUTPUT}."
fi
exit ${rc}
